<template>
    <el-dialog
      title="查看详细"
      :visible.sync="dialogVisible"
      width="30%"
      :before-close="handleClose">
     
      <el-form 
       :model="ruleForm" 
       ref="ruleForm" 
       label-width="100px" 
       class="demo-ruleForm">
      <el-form-item label="订单状态" prop="nowshow">
         <el-input v-model="ruleForm.nowshow"></el-input>
      </el-form-item>
      <el-form-item label="订单类型" prop="type">
         <el-input v-model="ruleForm.type"></el-input>
      </el-form-item>
      <el-form-item label="订单编号" prop="number">
         <el-input v-model.number="ruleForm.number"></el-input>
      </el-form-item>
      <el-form-item label="姓名" prop="username">
         <el-input v-model="ruleForm.username"></el-input>
      </el-form-item>
      <el-form-item label="科室" prop="hourse">
         <el-input v-model="ruleForm.hourse"></el-input>
      </el-form-item>
      <el-form-item label="医生" prop="doctor">
         <el-input v-model="ruleForm.doctor"></el-input>
      </el-form-item>
      <el-form-item label="优惠(元)" prop="pianyi">
         <el-input v-model.number="ruleForm.pianyi"></el-input>
      </el-form-item>
      <el-form-item label="应收(元)" prop="income">
         <el-input v-model.number="ruleForm.income"></el-input>
      </el-form-item>
      <el-form-item label="实收(元)" prop="nowincome">
         <el-input v-model.number="ruleForm.nowincome"></el-input>
      </el-form-item>
      <el-form-item label="医保(元)" prop="yibao">
         <el-input v-model.number="ruleForm.yibao"></el-input>
      </el-form-item>
      <el-form-item label="会员卡(元)" prop="ip">
         <el-input v-model.number="ruleForm.ip"></el-input>
      </el-form-item>
       <el-form-item label="现金(元)" prop="money">
         <el-input v-model.number="ruleForm.money"></el-input>
      </el-form-item>
       <el-form-item label="支付宝(元)" prop="zhifubao">
         <el-input v-model.number="ruleForm.zhifubao"></el-input>
      </el-form-item>
       <el-form-item label="微信(元)" prop="payv">
         <el-input v-model.number="ruleForm.ip"></el-input>
      </el-form-item>
       <el-form-item label="银行卡(元)" prop="payy">
         <el-input v-model.number="ruleForm.payy"></el-input>
      </el-form-item>
       <el-form-item label="收费日期" prop="incomedate">
         <el-input v-model="ruleForm.incomedate"></el-input>
      </el-form-item>
       <el-form-item label="收费员" prop="user">
         <el-input v-model="ruleForm.user"></el-input>
      </el-form-item>
      </el-form>

      <span slot="footer" class="dialog-footer">
        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
      </span>
    </el-dialog>
</template>

<script>
import bus from '../../../util/eventBus.js'
export default {
    data() {
      return {
        row:{},
        dialogVisible:false,
        ruleForm:{
            id:'',
            nowshow:'',
            type:'',
            number:'',
            username:'',
            hourse: '',
            doctor:'',
            pianyi:'',
            income:'',
            nowincome:'', 
            yibao: '',
            ip: '',
            money: '',
            zhifubao:'',
            payv: '',
            payy: '',
            incomedate:'',
            user: '',
        },
      }
    },
    mounted(){
      bus.$on("dataopendialog",(row)=>{//bus通信
         this.dialogVisible = true;
         this.ruleForm = {...row}
      })
    },
    methods: {
    handleClose(done) {
        this.$confirm('确认关闭？')
          .then(_ => {
            done();
          })
          .catch(_ => {});
    },
    }
  }
</script>

<style>

</style>
